package org.telegram.bot.emums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: wyx
 * @Date: 2023/5/28 0:04
 */
@Getter
@AllArgsConstructor
public enum RedisCacheKeyEnums {

    BOT_VALIDATE("bot_validate:", "验证码"),
    BOT_VALIDATE_MSG_ID("bot_validate_msg_id:", "消息id"),
    BOT_PROHIBITED_WORDS("bot_prohibited_words:", "违禁词"),
    BOT_GROUP("bot_group:", "群组")
    ;


    /**
     * 类型
     */
    private final String key;
    /**
     * 类型的标识
     */
    private final String info;
    
    public String getKey(String botId, String id) {
        return key +botId+":"+id;
    }
    
    public String getKey(String params) {
        return key+params+":";
    }
}
